<?php require '../public/system/headers/headers.php';?>
<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . 'system/css/seotoaster.css'); ?>
<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . 'system/js/thickbox/thickbox.css'); ?>

<div id="seotoaster" class="draftlist">
	<div id="admineditwhat">{%Pages in draft%}</div>
	<div class="close_window" onclick="parent.tb_remove();"></div>
	<div id="draftwrap">
		<div id="draftlist">
			<?php if($this->draftData): ?>
				<?php foreach($this->draftData as $draftPageData): ?>
				<?php// var_dump($draftPageData); ?>
					<p><a href="javascript:;" onclick="followUrl('<?php echo $this->websiteUrl . $draftPageData[key($draftPageData)] ;?>' + '.html')"><?php echo key($draftPageData); ?></a></p>
				<?php endforeach; ?>
			<?php else: ?>
				{%You have no pages in the draft yet%}...
			<?php endif; ?>
		</div>
	</div>
</div>

<script type="text/javascript">
	function followUrl(url) {
		top.location.href = url;
	}
</script>